package com.lovemanai.test;

import org.junit.Test;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lovemanai.simple.Simple;

public class Demo1 {

	@Test
	public void test1() {
		BeanFactory beanFactory = new ClassPathXmlApplicationContext("applicationContext.xml");
		
		Simple simple = beanFactory.getBean("simple", Simple.class);
		
		System.out.println(simple.compute(3, 4));
	}
	
}
